using UnityEngine;
using System.Collections;

public class Credits : MonoBehaviour {

    public Rect mainBox = new Rect(0, 0, 200, 200);
    string nameString = "Bob";
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void OnGUI()
    {
        GUI.BeginGroup((mainBox), "");
        if (GUI.Button(new Rect(0, 0, 50, 25), "Back"))
        {
            Application.LoadLevel(0);
        }

        //name field
        nameString = GUI.TextField(new Rect(0,50,50,25),nameString, 25);

        //display who made the game
        GUI.Label(new Rect(0,75,100,25),nameString + " made this game");
        GUI.EndGroup();        
    }
}
